package com.pet_service.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.pet_service.util.CodeEnum;

/**
 * 用户地址默认类型枚举
 */
public enum TUserAddressStatus implements CodeEnum {
    NOT_DEFAULT(0, "否"),
    DEFAULT(1, "是");

    @EnumValue
    private final int code;
    private final String desc;

    TUserAddressStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() { return code; }
    public String getDesc() { return desc; }
}
